﻿using System;
using System.Collections.Generic;
using System.Text;

using Obsidian.Edm;

namespace Oak.Model
{
    public class BsAccountInfo : OModel, BsIAccountInfo
    {

        public LongField accountId;
        public LongField userId;
        public LongField adminId;
        public EnumField<AccountType> accountType;

        public BsAccountInfo()
        {
            base.InitModel(new IModelField[] {
                accountId = new LongField(this),
                userId = new LongField(this, null, "userId"),
                adminId = new LongField(this, null, "adminId"),
                accountType = new EnumField<AccountType>(this, null, "accountType", EnumFieldToStringCase.LowerCase)
            });
        }

        public LongField AccountId
        {
            get { return accountId; }
        }

        public LongField UserId
        {
            get { return userId; }
        }

        public LongField AdminId
        {
            get { return adminId; }
        }

        public EnumField<AccountType> AccountType
        {
            get { return accountType; }
        }
    }
}
